import { PartialType, IntersectionType, OmitType } from '@nestjs/swagger';
import { CreateLogDto } from './create-log.dto';
import { NewsPaginationParams } from '../../agent_manag/dto/update-agent_manag.dto';
import { IsNotEmpty, IsNumber } from 'class-validator';

export class UpdateLogDto extends PartialType(CreateLogDto) {
  @IsNotEmpty()
  @IsNumber()
  id: number;
}

export class FindAllDto extends IntersectionType(
  NewsPaginationParams,
  OmitType(UpdateLogDto, ['id']),
) {}
